MDirectorNewsletter\includes\Mdirector_Newsletter_Utils D

Total Complexity 285
Dependencies 11
Dependents 6
Total lines 1,839
Lines of code 1,245
Logical lines of code 510
Comment lines 122
Methods 91
Properties 4

Methods 91

Method Rating Maintainability Complexity Lines of code
sendMailAPI()
B
37 16 73
getRegisterFormHTML()
B
39 15 63
isDeliveryActive()
A
47 15 36
mdSendWeeklyMails()
A
39 12 64
mdSendDailyMails()
A
41 10 58
getUserListItemHTML()
A
46 10 37
composeEmailSubject()
A
49 8 31
mdSendMail()
S
46 6 38
getUserListNameByType()
S
58 7 17
getSelectFrequency()
S
49 5 37
log()
S
55 6 21
getSelectedUserListsByLanguageHTML()
S
49 5 32
getCurrentLanguages()
S
53 5 25
buildDailyMails()
S
56 5 19
buildWeeklyMails()
S
56 5 19
getCurrentTemplate()
S
56 5 18
getUserListsByAPI()
S
51 4 30
getUserCampaignsByAPI()
S
51 4 29
getCurrentGroupsIds()
S
59 5 14
getCurrentSegmentsIds()
S
59 5 14
getCurrentListsIds()
S
62 5 11
getUserCampaignsHTML()
S
55 4 19
findKeyInMultiArray()
S
63 5 10
getCurrentLang()
S
60 4 13
getExcludeCats()
S
61 4 12
getCampaignsHTMLByFrequency()
S
53 3 23
textTruncate()
S
56 3 18
buildPosts()
S
58 3 16
getMainImage()
S
63 3 11
getTemplateOptionsHTML()
S
58 2 17
getListsHTML()
S
63 3 10
getUserListValueByType()
S
73 3 5
getListsPrefix()
S
66 3 9
checkIfDeliveryCanBeSent()
S
63 3 10
getPluginTemplates()
S
63 3 10
getTemplateMainFile()
S
64 3 10
parseUserLists()
S
68 3 7
parseUserSegments()
S
69 3 7
parseUserGroups()
S
68 3 7
resetNewsletterDeliveryDateSent()
S
59 2 15
getMinimumPostsForNewsletter()
S
59 2 14
getCustomTemplatesURI()
S
62 2 13
parsePost()
S
60 2 13
getImageTagFromPost()
S
63 2 12
getCampaignsForTestsHTMLByFrequency()
S
62 2 11
getPluginOptions()
S
76 2 4
getUserListExtraData()
S
70 2 6
calculateFromDate()
S
63 2 10
cleanNewsletterProcess()
S
63 2 10
getDynamicPostTitle()
S
68 2 7
getTemplatePath()
S
69 2 7
getCustomTemplatesPath()
S
69 2 7
getTemplateURL()
S
70 2 6
getDeliveryCampaignId()
S
70 2 6
printNotices()
S
73 2 5
getMainImageSize()
S
74 2 5
getUserCustomTemplates()
S
61 1 13
resetDeliveriesSent()
S
64 1 11
getPostsArgs()
S
64 1 11
__construct()
S
76 1 4
isWPML()
S
80 1 3
getWeeklyCampaignsByLanguageHTML()
S
80 1 3
getWeeklyCampaignsTestsHTML()
S
80 1 3
getDailyCampaignsByLanguageHTML()
S
80 1 3
getDailyCampaignsTestsHTML()
S
80 1 3
getUserListsHTML()
S
75 1 4
getSegmentsInGroup()
S
75 1 4
getAndParseCustomPost()
S
74 1 4
getCustomPost()
S
72 1 5
getCustomPostArg()
S
72 1 6
getPosts()
S
70 1 6
buildDailyMailsInPreviewMode()
S
76 1 4
calculateToDate()
S
66 1 9
getTemplateName()
S
75 1 4
getCustomTemplatesOnChildThemePath()
S
72 1 6
getCustomTemplatesOnParentThemePath()
S
72 1 6
getDefaultTemplates()
S
71 1 6
isTemplateCustom()
S
79 1 3
templateMainFileIsTwig()
S
75 1 4
parsingTemplate()
S
64 1 10
buildUserListsForCampaign()
S
67 1 9
buildWeeklyMailsInPreviewMode()
S
76 1 4
getDefaultUserLists()
S
68 1 7
prettyPrintMultiArray()
S
67 1 7
reportNotice()
S
70 1 7
bootNotices()
S
79 1 3
buildListFromPosts()
S
64 1 10
getSegmentId()
S
82 1 3
buildUserList()
S
80 1 3
buildUserGroupSegments()
S
80 1 3
setHTMLContentType()
S
82 1 3